home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Python 1.3 / source code / Doc / libhtmllib.tex < prev    next >
LaTeX Document  |  1995-12-17  |  9.6 KB  |  [TEXT/R*ch]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
100% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file HTML document text default (weak)
98% file LaTeX document, ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[R*ch]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 53 74 61 6e 64 61 72 |\section|{Standar|
|00000010| 64 20 4d 6f 64 75 6c 65 | 20 5c 73 65 63 74 63 6f |d Module| \sectco|
|00000020| 64 65 7b 68 74 6d 6c 6c | 69 62 7d 7d 0d 5c 73 74 |de{htmll|ib}}.\st|
|00000030| 6d 6f 64 69 6e 64 65 78 | 7b 68 74 6d 6c 6c 69 62 |modindex|{htmllib|
|00000040| 7d 0d 5c 69 6e 64 65 78 | 7b 48 54 4d 4c 7d 0d 5c |}.\index|{HTML}.\|
|00000050| 69 6e 64 65 78 7b 68 79 | 70 65 72 74 65 78 74 7d |index{hy|pertext}|
|00000060| 0d 0d 5c 72 65 6e 65 77 | 63 6f 6d 6d 61 6e 64 7b |..\renew|command{|
|00000070| 5c 69 6e 64 65 78 73 75 | 62 69 74 65 6d 7d 7b 28 |\indexsu|bitem}{(|
|00000080| 69 6e 20 6d 6f 64 75 6c | 65 20 68 74 6d 6c 6c 69 |in modul|e htmlli|
|00000090| 62 29 7d 0d 0d 54 68 69 | 73 20 6d 6f 64 75 6c 65 |b)}..Thi|s module|
|000000a0| 20 64 65 66 69 6e 65 73 | 20 61 20 6e 75 6d 62 65 | defines| a numbe|
|000000b0| 72 20 6f 66 20 63 6c 61 | 73 73 65 73 20 77 68 69 |r of cla|sses whi|
|000000c0| 63 68 20 63 61 6e 20 73 | 65 72 76 65 20 61 73 20 |ch can s|erve as |
|000000d0| 61 20 62 61 73 69 73 20 | 66 6f 72 0d 70 61 72 73 |a basis |for.pars|
|000000e0| 69 6e 67 20 74 65 78 74 | 20 66 69 6c 65 73 20 66 |ing text| files f|
|000000f0| 6f 72 6d 61 74 74 65 64 | 20 69 6e 20 48 54 4d 4c |ormatted| in HTML|
|00000100| 20 28 48 79 70 65 72 54 | 65 78 74 20 4d 61 72 6b | (HyperT|ext Mark|
|00000110| 2d 75 70 20 4c 61 6e 67 | 75 61 67 65 29 2e 0d 54 |-up Lang|uage)..T|
|00000120| 68 65 20 63 6c 61 73 73 | 65 73 20 61 72 65 20 6e |he class|es are n|
|00000130| 6f 74 20 64 69 72 65 63 | 74 6c 79 20 63 6f 6e 63 |ot direc|tly conc|
|00000140| 65 72 6e 65 64 20 77 69 | 74 68 20 49 2f 4f 20 2d |erned wi|th I/O -|
|00000150| 2d 2d 20 74 68 65 20 68 | 61 76 65 20 74 6f 20 62 |-- the h|ave to b|
|00000160| 65 20 66 65 64 0d 74 68 | 65 69 72 20 69 6e 70 75 |e fed.th|eir inpu|
|00000170| 74 20 69 6e 20 73 74 72 | 69 6e 67 20 66 6f 72 6d |t in str|ing form|
|00000180| 2c 20 61 6e 64 20 77 69 | 6c 6c 20 6d 61 6b 65 20 |, and wi|ll make |
|00000190| 63 61 6c 6c 73 20 74 6f | 20 6d 65 74 68 6f 64 73 |calls to| methods|
|000001a0| 20 6f 66 20 61 0d 60 60 | 66 6f 72 6d 61 74 74 65 | of a.``|formatte|
|000001b0| 72 27 27 20 6f 62 6a 65 | 63 74 20 69 6e 20 6f 72 |r'' obje|ct in or|
|000001c0| 64 65 72 20 74 6f 20 70 | 72 6f 64 75 63 65 20 6f |der to p|roduce o|
|000001d0| 75 74 70 75 74 2e 20 20 | 54 68 65 20 63 6c 61 73 |utput. |The clas|
|000001e0| 73 65 73 20 61 72 65 0d | 64 65 73 69 67 6e 65 64 |ses are.|designed|
|000001f0| 20 74 6f 20 62 65 20 75 | 73 65 64 20 61 73 20 62 | to be u|sed as b|
|00000200| 61 73 65 20 63 6c 61 73 | 73 65 73 20 66 6f 72 20 |ase clas|ses for |
|00000210| 6f 74 68 65 72 20 63 6c | 61 73 73 65 73 20 69 6e |other cl|asses in|
|00000220| 20 6f 72 64 65 72 20 74 | 6f 20 61 64 64 0d 66 75 | order t|o add.fu|
|00000230| 6e 63 74 69 6f 6e 61 6c | 69 74 79 2c 20 61 6e 64 |nctional|ity, and|
|00000240| 20 61 6c 6c 6f 77 20 6d | 6f 73 74 20 6f 66 20 74 | allow m|ost of t|
|00000250| 68 65 69 72 20 6d 65 74 | 68 6f 64 73 20 74 6f 20 |heir met|hods to |
|00000260| 62 65 20 65 78 74 65 6e | 64 65 64 20 6f 72 0d 6f |be exten|ded or.o|
|00000270| 76 65 72 72 69 64 64 65 | 6e 2e 20 20 49 6e 20 74 |verridde|n. In t|
|00000280| 75 72 6e 2c 20 74 68 65 | 20 63 6c 61 73 73 65 73 |urn, the| classes|
|00000290| 20 61 72 65 20 64 65 72 | 69 76 65 64 20 66 72 6f | are der|ived fro|
|000002a0| 6d 20 61 6e 64 20 65 78 | 74 65 6e 64 20 74 68 65 |m and ex|tend the|
|000002b0| 0d 63 6c 61 73 73 20 5c | 63 6f 64 65 7b 53 47 4d |.class \|code{SGM|
|000002c0| 4c 50 61 72 73 65 72 7d | 20 64 65 66 69 6e 65 64 |LParser}| defined|
|000002d0| 20 69 6e 20 6d 6f 64 75 | 6c 65 20 5c 63 6f 64 65 | in modu|le \code|
|000002e0| 7b 73 67 6d 6c 6c 69 62 | 7d 2e 0d 5c 69 6e 64 65 |{sgmllib|}..\inde|
|000002f0| 78 7b 53 47 4d 4c 7d 0d | 5c 73 74 6d 6f 64 69 6e |x{SGML}.|\stmodin|
|00000300| 64 65 78 7b 73 67 6d 6c | 6c 69 62 7d 0d 5c 74 74 |dex{sgml|lib}.\tt|
|00000310| 69 6e 64 65 78 7b 53 47 | 4d 4c 50 61 72 73 65 72 |index{SG|MLParser|
|00000320| 7d 0d 5c 69 6e 64 65 78 | 7b 66 6f 72 6d 61 74 74 |}.\index|{formatt|
|00000330| 65 72 7d 0d 0d 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |er}..The| followi|
|00000340| 6e 67 20 69 73 20 61 20 | 73 75 6d 6d 61 72 79 20 |ng is a |summary |
|00000350| 6f 66 20 74 68 65 20 69 | 6e 74 65 72 66 61 63 65 |of the i|nterface|
|00000360| 20 64 65 66 69 6e 65 64 | 20 62 79 0d 5c 63 6f 64 | defined| by.\cod|
|00000370| 65 7b 73 67 6d 6c 6c 69 | 62 2e 53 47 4d 4c 50 61 |e{sgmlli|b.SGMLPa|
|00000380| 72 73 65 72 7d 3a 0d 0d | 5c 62 65 67 69 6e 7b 69 |rser}:..|\begin{i|
|00000390| 74 65 6d 69 7a 65 7d 0d | 0d 5c 69 74 65 6d 0d 54 |temize}.|.\item.T|
|000003a0| 68 65 20 69 6e 74 65 72 | 66 61 63 65 20 74 6f 20 |he inter|face to |
|000003b0| 66 65 65 64 20 64 61 74 | 61 20 74 6f 20 61 6e 20 |feed dat|a to an |
|000003c0| 69 6e 73 74 61 6e 63 65 | 20 69 73 20 74 68 72 6f |instance| is thro|
|000003d0| 75 67 68 20 74 68 65 20 | 5c 63 6f 64 65 7b 66 65 |ugh the |\code{fe|
|000003e0| 65 64 28 29 7d 0d 6d 65 | 74 68 6f 64 2c 20 77 68 |ed()}.me|thod, wh|
|000003f0| 69 63 68 20 74 61 6b 65 | 73 20 61 20 73 74 72 69 |ich take|s a stri|
|00000400| 6e 67 20 61 72 67 75 6d | 65 6e 74 2e 20 20 54 68 |ng argum|ent. Th|
|00000410| 69 73 20 63 61 6e 20 62 | 65 20 63 61 6c 6c 65 64 |is can b|e called|
|00000420| 20 77 69 74 68 20 61 73 | 0d 6c 69 74 74 6c 65 20 | with as|.little |
|00000430| 6f 72 20 61 73 20 6d 75 | 63 68 20 74 65 78 74 20 |or as mu|ch text |
|00000440| 61 74 20 61 20 74 69 6d | 65 20 61 73 20 64 65 73 |at a tim|e as des|
|00000450| 69 72 65 64 3b 0d 5c 63 | 6f 64 65 7b 70 2e 66 65 |ired;.\c|ode{p.fe|
|00000460| 65 64 28 61 29 3b 20 70 | 2e 66 65 65 64 28 62 29 |ed(a); p|.feed(b)|
|00000470| 7d 20 68 61 73 20 74 68 | 65 20 73 61 6d 65 20 65 |} has th|e same e|
|00000480| 66 66 65 63 74 20 61 73 | 20 5c 63 6f 64 65 7b 70 |ffect as| \code{p|
|00000490| 2e 66 65 65 64 28 61 2b | 62 29 7d 2e 0d 57 68 65 |.feed(a+|b)}..Whe|
|000004a0| 6e 20 74 68 65 20 64 61 | 74 61 20 63 6f 6e 74 61 |n the da|ta conta|
|000004b0| 69 6e 73 20 63 6f 6d 70 | 6c 65 74 65 0d 48 54 4d |ins comp|lete.HTM|
|000004c0| 4c 20 65 6c 65 6d 65 6e | 74 73 2c 20 74 68 65 73 |L elemen|ts, thes|
|000004d0| 65 20 61 72 65 20 70 72 | 6f 63 65 73 73 65 64 20 |e are pr|ocessed |
|000004e0| 69 6d 6d 65 64 69 61 74 | 65 6c 79 3b 20 69 6e 63 |immediat|ely; inc|
|000004f0| 6f 6d 70 6c 65 74 65 20 | 65 6c 65 6d 65 6e 74 73 |omplete |elements|
|00000500| 0d 61 72 65 20 73 61 76 | 65 64 20 69 6e 20 61 20 |.are sav|ed in a |
|00000510| 62 75 66 66 65 72 2e 20 | 20 54 6f 20 66 6f 72 63 |buffer. | To forc|
|00000520| 65 20 70 72 6f 63 65 73 | 73 69 6e 67 20 6f 66 20 |e proces|sing of |
|00000530| 61 6c 6c 20 75 6e 70 72 | 6f 63 65 73 73 65 64 20 |all unpr|ocessed |
|00000540| 64 61 74 61 2c 0d 63 61 | 6c 6c 20 74 68 65 20 5c |data,.ca|ll the \|
|00000550| 63 6f 64 65 7b 63 6c 6f | 73 65 28 29 7d 20 6d 65 |code{clo|se()} me|
|00000560| 74 68 6f 64 2e 0d 0d 45 | 78 61 6d 70 6c 65 3a 20 |thod...E|xample: |
|00000570| 74 6f 20 70 61 72 73 65 | 20 74 68 65 20 65 6e 74 |to parse| the ent|
|00000580| 69 72 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |ire cont|ents of |
|00000590| 61 20 66 69 6c 65 2c 20 | 64 6f 5c 5c 0d 5c 63 6f |a file, |do\\.\co|
|000005a0| 64 65 7b 70 61 72 73 65 | 72 2e 66 65 65 64 28 6f |de{parse|r.feed(o|
|000005b0| 70 65 6e 28 66 69 6c 65 | 29 2e 72 65 61 64 28 29 |pen(file|).read()|
|000005c0| 29 3b 20 70 61 72 73 65 | 72 2e 63 6c 6f 73 65 28 |); parse|r.close(|
|000005d0| 29 7d 2e 0d 0d 5c 69 74 | 65 6d 0d 54 68 65 20 69 |)}...\it|em.The i|
|000005e0| 6e 74 65 72 66 61 63 65 | 20 74 6f 20 64 65 66 69 |nterface| to defi|
|000005f0| 6e 65 20 73 65 6d 61 6e | 74 69 63 73 20 66 6f 72 |ne seman|tics for|
|00000600| 20 48 54 4d 4c 20 74 61 | 67 73 20 69 73 20 76 65 | HTML ta|gs is ve|
|00000610| 72 79 20 73 69 6d 70 6c | 65 3a 20 64 65 72 69 76 |ry simpl|e: deriv|
|00000620| 65 0d 61 20 63 6c 61 73 | 73 20 61 6e 64 20 64 65 |e.a clas|s and de|
|00000630| 66 69 6e 65 20 6d 65 74 | 68 6f 64 73 20 63 61 6c |fine met|hods cal|
|00000640| 6c 65 64 20 5c 63 6f 64 | 65 7b 73 74 61 72 74 5f |led \cod|e{start_|
|00000650| 5c 76 61 72 7b 74 61 67 | 7d 28 29 7d 2c 0d 5c 63 |\var{tag|}()},.\c|
|00000660| 6f 64 65 7b 65 6e 64 5f | 5c 76 61 72 7b 74 61 67 |ode{end_|\var{tag|
|00000670| 7d 28 29 7d 2c 20 6f 72 | 20 5c 63 6f 64 65 7b 64 |}()}, or| \code{d|
|00000680| 6f 5f 5c 76 61 72 7b 74 | 61 67 7d 28 29 7d 2e 20 |o_\var{t|ag}()}. |
|00000690| 20 54 68 65 20 70 61 72 | 73 65 72 20 77 69 6c 6c | The par|ser will|
|000006a0| 0d 63 61 6c 6c 20 74 68 | 65 73 65 20 61 74 20 61 |.call th|ese at a|
|000006b0| 70 70 72 6f 70 72 69 61 | 74 65 20 6d 6f 6d 65 6e |ppropria|te momen|
|000006c0| 74 73 3a 20 5c 63 6f 64 | 65 7b 73 74 61 72 74 5f |ts: \cod|e{start_|
|000006d0| 5c 76 61 72 7b 74 61 67 | 7d 7d 20 6f 72 0d 5c 63 |\var{tag|}} or.\c|
|000006e0| 6f 64 65 7b 64 6f 5f 5c | 76 61 72 7b 74 61 67 7d |ode{do_\|var{tag}|
|000006f0| 7d 20 69 73 20 63 61 6c | 6c 65 64 20 77 68 65 6e |} is cal|led when|
|00000700| 20 61 6e 20 6f 70 65 6e | 69 6e 67 20 74 61 67 20 | an open|ing tag |
|00000710| 6f 66 20 74 68 65 20 66 | 6f 72 6d 0d 5c 63 6f 64 |of the f|orm.\cod|
|00000720| 65 7b 3c 5c 76 61 72 7b | 74 61 67 7d 20 2e 2e 2e |e{<\var{|tag} ...|
|00000730| 3e 7d 20 69 73 20 65 6e | 63 6f 75 6e 74 65 72 65 |>} is en|countere|
|00000740| 64 3b 20 5c 63 6f 64 65 | 7b 65 6e 64 5f 5c 76 61 |d; \code|{end_\va|
|00000750| 72 7b 74 61 67 7d 7d 20 | 69 73 20 63 61 6c 6c 65 |r{tag}} |is calle|
|00000760| 64 0d 77 68 65 6e 20 61 | 20 63 6c 6f 73 69 6e 67 |d.when a| closing|
|00000770| 20 74 61 67 20 6f 66 20 | 74 68 65 20 66 6f 72 6d | tag of |the form|
|00000780| 20 5c 63 6f 64 65 7b 3c | 5c 76 61 72 7b 74 61 67 | \code{<|\var{tag|
|00000790| 7d 3e 7d 20 69 73 20 65 | 6e 63 6f 75 6e 74 65 72 |}>} is e|ncounter|
|000007a0| 65 64 2e 20 20 49 66 0d | 61 6e 20 6f 70 65 6e 69 |ed. If.|an openi|
|000007b0| 6e 67 20 74 61 67 20 72 | 65 71 75 69 72 65 73 20 |ng tag r|equires |
|000007c0| 61 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |a corres|ponding |
|000007d0| 63 6c 6f 73 69 6e 67 20 | 74 61 67 2c 20 6c 69 6b |closing |tag, lik|
|000007e0| 65 20 5c 63 6f 64 65 7b | 3c 48 31 3e 7d 0d 2e 2e |e \code{|<H1>}...|
|000007f0| 2e 20 5c 63 6f 64 65 7b | 3c 2f 48 31 3e 7d 2c 20 |. \code{|</H1>}, |
|00000800| 74 68 65 20 63 6c 61 73 | 73 20 73 68 6f 75 6c 64 |the clas|s should|
|00000810| 20 64 65 66 69 6e 65 20 | 74 68 65 20 5c 63 6f 64 | define |the \cod|
|00000820| 65 7b 73 74 61 72 74 5f | 5c 76 61 72 7b 74 61 67 |e{start_|\var{tag|
|00000830| 7d 7d 0d 6d 65 74 68 6f | 64 3b 20 69 66 20 61 20 |}}.metho|d; if a |
|00000840| 74 61 67 20 72 65 71 75 | 69 72 65 73 20 6e 6f 20 |tag requ|ires no |
|00000850| 63 6c 6f 73 69 6e 67 20 | 74 61 67 2c 20 6c 69 6b |closing |tag, lik|
|00000860| 65 20 5c 63 6f 64 65 7b | 3c 50 3e 7d 2c 20 74 68 |e \code{|<P>}, th|
|00000870| 65 20 63 6c 61 73 73 0d | 73 68 6f 75 6c 64 20 64 |e class.|should d|
|00000880| 65 66 69 6e 65 20 74 68 | 65 20 5c 63 6f 64 65 7b |efine th|e \code{|
|00000890| 64 6f 5f 5c 76 61 72 7b | 74 61 67 7d 7d 20 6d 65 |do_\var{|tag}} me|
|000008a0| 74 68 6f 64 2e 0d 0d 5c | 65 6e 64 7b 69 74 65 6d |thod...\|end{item|
|000008b0| 69 7a 65 7d 0d 0d 54 68 | 65 20 6d 6f 64 75 6c 65 |ize}..Th|e module|
|000008c0| 20 64 65 66 69 6e 65 73 | 20 74 68 65 20 66 6f 6c | defines| the fol|
|000008d0| 6c 6f 77 69 6e 67 20 63 | 6c 61 73 73 65 73 3a 0d |lowing c|lasses:.|
|000008e0| 0d 5c 62 65 67 69 6e 7b | 66 75 6e 63 64 65 73 63 |.\begin{|funcdesc|
|000008f0| 7d 7b 48 54 4d 4c 50 61 | 72 73 65 72 7d 7b 7d 0d |}{HTMLPa|rser}{}.|
|00000900| 54 68 69 73 20 69 73 20 | 74 68 65 20 6d 6f 73 74 |This is |the most|
|00000910| 20 62 61 73 69 63 20 48 | 54 4d 4c 20 70 61 72 73 | basic H|TML pars|
|00000920| 65 72 20 63 6c 61 73 73 | 2e 20 20 49 74 20 64 65 |er class|. It de|
|00000930| 66 69 6e 65 73 20 6f 6e | 65 20 61 64 64 69 74 69 |fines on|e additi|
|00000940| 6f 6e 61 6c 0d 65 6e 74 | 69 74 79 20 6e 61 6d 65 |onal.ent|ity name|
|00000950| 20 6f 76 65 72 20 74 68 | 65 20 6e 61 6d 65 73 20 | over th|e names |
|00000960| 64 65 66 69 6e 65 64 20 | 62 79 20 74 68 65 20 5c |defined |by the \|
|00000970| 63 6f 64 65 7b 53 47 4d | 4c 50 61 72 73 65 72 7d |code{SGM|LParser}|
|00000980| 20 62 61 73 65 0d 63 6c | 61 73 73 2c 20 5c 63 6f | base.cl|ass, \co|
|00000990| 64 65 7b 5c 26 62 75 6c | 6c 65 74 3b 7d 2e 20 20 |de{\&bul|let;}. |
|000009a0| 49 74 20 61 6c 73 6f 20 | 64 65 66 69 6e 65 73 20 |It also |defines |
|000009b0| 68 61 6e 64 6c 65 72 73 | 20 66 6f 72 20 74 68 65 |handlers| for the|
|000009c0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 0d 74 61 67 73 3a | followi|ng.tags:|
|000009d0| 20 5c 63 6f 64 65 7b 3c | 4c 49 53 54 49 4e 47 3e | \code{<|LISTING>|
|000009e0| 2e 2e 2e 3c 2f 4c 49 53 | 54 49 4e 47 3e 7d 2c 20 |...</LIS|TING>}, |
|000009f0| 5c 63 6f 64 65 7b 3c 58 | 4d 50 3e 2e 2e 2e 3c 2f |\code{<X|MP>...</|
|00000a00| 58 4d 50 3e 7d 2c 20 61 | 6e 64 0d 5c 63 6f 64 65 |XMP>}, a|nd.\code|
|00000a10| 7b 3c 50 4c 41 49 4e 54 | 45 58 54 3e 7d 20 28 74 |{<PLAINT|EXT>} (t|
|00000a20| 68 65 20 6c 61 74 74 65 | 72 20 69 73 20 74 65 72 |he latte|r is ter|
|00000a30| 6d 69 6e 61 74 65 64 20 | 6f 6e 6c 79 20 62 79 20 |minated |only by |
|00000a40| 65 6e 64 20 6f 66 20 66 | 69 6c 65 29 2e 0d 5c 65 |end of f|ile)..\e|
|00000a50| 6e 64 7b 66 75 6e 63 64 | 65 73 63 7d 0d 0d 5c 62 |nd{funcd|esc}..\b|
|00000a60| 65 67 69 6e 7b 66 75 6e | 63 64 65 73 63 7d 7b 43 |egin{fun|cdesc}{C|
|00000a70| 6f 6c 6c 65 63 74 69 6e | 67 50 61 72 73 65 72 7d |ollectin|gParser}|
|00000a80| 7b 7d 0d 54 68 69 73 20 | 63 6c 61 73 73 2c 20 64 |{}.This |class, d|
|00000a90| 65 72 69 76 65 64 20 66 | 72 6f 6d 20 5c 63 6f 64 |erived f|rom \cod|
|00000aa0| 65 7b 48 54 4d 4c 50 61 | 72 73 65 72 7d 2c 20 63 |e{HTMLPa|rser}, c|
|00000ab0| 6f 6c 6c 65 63 74 73 20 | 76 61 72 69 6f 75 73 20 |ollects |various |
|00000ac0| 75 73 65 66 75 6c 0d 62 | 69 74 73 20 6f 66 20 69 |useful.b|its of i|
|00000ad0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 66 72 6f 6d 20 |nformati|on from |
|00000ae0| 74 68 65 20 48 54 4d 4c | 20 74 65 78 74 2e 20 20 |the HTML| text. |
|00000af0| 54 6f 20 74 68 69 73 20 | 65 6e 64 20 69 74 20 64 |To this |end it d|
|00000b00| 65 66 69 6e 65 73 0d 61 | 64 64 69 74 69 6f 6e 61 |efines.a|dditiona|
|00000b10| 6c 20 68 61 6e 64 6c 65 | 72 73 20 66 6f 72 20 74 |l handle|rs for t|
|00000b20| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 74 61 67 |he follo|wing tag|
|00000b30| 73 3a 20 5c 63 6f 64 65 | 7b 3c 41 3e 2e 2e 2e 3c |s: \code|{<A>...<|
|00000b40| 2f 41 3e 7d 2c 0d 5c 63 | 6f 64 65 7b 3c 48 45 41 |/A>},.\c|ode{<HEA|
|00000b50| 44 3e 2e 2e 2e 3c 2f 48 | 45 41 44 3e 7d 2c 20 5c |D>...</H|EAD>}, \|
|00000b60| 63 6f 64 65 7b 3c 42 4f | 44 59 3e 2e 2e 2e 3c 2f |code{<BO|DY>...</|
|00000b70| 42 4f 44 59 3e 7d 2c 0d | 5c 63 6f 64 65 7b 3c 54 |BODY>},.|\code{<T|
|00000b80| 49 54 4c 45 3e 2e 2e 2e | 3c 2f 54 49 54 4c 45 3e |ITLE>...|</TITLE>|
|00000b90| 7d 2c 20 5c 63 6f 64 65 | 7b 3c 4e 45 58 54 49 44 |}, \code|{<NEXTID|
|00000ba0| 3e 7d 2c 20 61 6e 64 20 | 5c 63 6f 64 65 7b 3c 49 |>}, and |\code{<I|
|00000bb0| 53 49 4e 44 45 58 3e 7d | 2e 0d 5c 65 6e 64 7b 66 |SINDEX>}|..\end{f|
|00000bc0| 75 6e 63 64 65 73 63 7d | 0d 0d 5c 62 65 67 69 6e |uncdesc}|..\begin|
|00000bd0| 7b 66 75 6e 63 64 65 73 | 63 7d 7b 46 6f 72 6d 61 |{funcdes|c}{Forma|
|00000be0| 74 74 69 6e 67 50 61 72 | 73 65 72 7d 7b 66 6f 72 |ttingPar|ser}{for|
|00000bf0| 6d 61 74 74 65 72 5c 2c | 20 73 74 79 6c 65 73 68 |matter\,| stylesh|
|00000c00| 65 65 74 7d 0d 54 68 69 | 73 20 63 6c 61 73 73 2c |eet}.Thi|s class,|
|00000c10| 20 64 65 72 69 76 65 64 | 20 66 72 6f 6d 20 5c 63 | derived| from \c|
|00000c20| 6f 64 65 7b 43 6f 6c 6c | 65 63 74 69 6e 67 50 61 |ode{Coll|ectingPa|
|00000c30| 72 73 65 72 7d 2c 20 69 | 6e 74 65 72 70 72 65 74 |rser}, i|nterpret|
|00000c40| 73 20 61 20 77 69 64 65 | 0d 73 65 6c 65 63 74 69 |s a wide|.selecti|
|00000c50| 6f 6e 20 6f 66 20 48 54 | 4d 4c 20 74 61 67 73 20 |on of HT|ML tags |
|00000c60| 73 6f 20 69 74 20 63 61 | 6e 20 70 72 6f 64 75 63 |so it ca|n produc|
|00000c70| 65 20 66 6f 72 6d 61 74 | 74 65 64 20 6f 75 74 70 |e format|ted outp|
|00000c80| 75 74 20 66 72 6f 6d 20 | 74 68 65 0d 70 61 72 73 |ut from |the.pars|
|00000c90| 65 64 20 64 61 74 61 2e | 20 20 49 74 20 69 73 20 |ed data.| It is |
|00000ca0| 69 6e 69 74 69 61 6c 69 | 7a 65 64 20 77 69 74 68 |initiali|zed with|
|00000cb0| 20 74 77 6f 20 6f 62 6a | 65 63 74 73 2c 20 61 20 | two obj|ects, a |
|00000cc0| 5c 76 61 72 7b 66 6f 72 | 6d 61 74 74 65 72 7d 0d |\var{for|matter}.|
|00000cd0| 77 68 69 63 68 20 73 68 | 6f 75 6c 64 20 64 65 66 |which sh|ould def|
|00000ce0| 69 6e 65 20 61 20 6e 75 | 6d 62 65 72 20 6f 66 20 |ine a nu|mber of |
|00000cf0| 6d 65 74 68 6f 64 73 20 | 74 6f 20 66 6f 72 6d 61 |methods |to forma|
|00000d00| 74 20 74 65 78 74 20 69 | 6e 74 6f 0d 70 61 72 61 |t text i|nto.para|
|00000d10| 67 72 61 70 68 73 2c 20 | 61 6e 64 20 61 20 5c 76 |graphs, |and a \v|
|00000d20| 61 72 7b 73 74 79 6c 65 | 73 68 65 65 74 7d 20 77 |ar{style|sheet} w|
|00000d30| 68 69 63 68 20 64 65 66 | 69 6e 65 73 20 61 20 6e |hich def|ines a n|
|00000d40| 75 6d 62 65 72 20 6f 66 | 20 73 74 61 74 69 63 0d |umber of| static.|
|00000d50| 70 61 72 61 6d 65 74 65 | 72 73 20 66 6f 72 20 74 |paramete|rs for t|
|00000d60| 68 65 20 66 6f 72 6d 61 | 74 74 69 6e 67 20 70 72 |he forma|tting pr|
|00000d70| 6f 63 65 73 73 2e 20 20 | 46 6f 72 6d 61 74 74 65 |ocess. |Formatte|
|00000d80| 72 73 20 61 6e 64 20 73 | 74 79 6c 65 20 73 68 65 |rs and s|tyle she|
|00000d90| 65 74 73 0d 61 72 65 20 | 64 6f 63 75 6d 65 6e 74 |ets.are |document|
|00000da0| 65 64 20 6c 61 74 65 72 | 20 69 6e 20 74 68 69 73 |ed later| in this|
|00000db0| 20 73 65 63 74 69 6f 6e | 2e 0d 5c 69 6e 64 65 78 | section|..\index|
|00000dc0| 7b 66 6f 72 6d 61 74 74 | 65 72 7d 0d 5c 69 6e 64 |{formatt|er}.\ind|
|00000dd0| 65 78 7b 73 74 79 6c 65 | 20 73 68 65 65 74 7d 0d |ex{style| sheet}.|
|00000de0| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 0d 0d |\end{fun|cdesc}..|
|00000df0| 5c 62 65 67 69 6e 7b 66 | 75 6e 63 64 65 73 63 7d |\begin{f|uncdesc}|
|00000e00| 7b 41 6e 63 68 6f 72 69 | 6e 67 50 61 72 73 65 72 |{Anchori|ngParser|
|00000e10| 7d 7b 66 6f 72 6d 61 74 | 74 65 72 5c 2c 20 73 74 |}{format|ter\, st|
|00000e20| 79 6c 65 73 68 65 65 74 | 7d 0d 54 68 69 73 20 63 |ylesheet|}.This c|
|00000e30| 6c 61 73 73 2c 20 64 65 | 72 69 76 65 64 20 66 72 |lass, de|rived fr|
|00000e40| 6f 6d 20 5c 63 6f 64 65 | 7b 46 6f 72 6d 61 74 74 |om \code|{Formatt|
|00000e50| 69 6e 67 50 61 72 73 65 | 72 7d 2c 20 65 78 74 65 |ingParse|r}, exte|
|00000e60| 6e 64 73 20 74 68 65 20 | 68 61 6e 64 6c 69 6e 67 |nds the |handling|
|00000e70| 0d 6f 66 20 74 68 65 20 | 5c 63 6f 64 65 7b 3c 41 |.of the |\code{<A|
|00000e80| 3e 2e 2e 2e 3c 2f 41 3e | 7d 20 74 61 67 20 70 61 |>...</A>|} tag pa|
|00000e90| 69 72 20 74 6f 20 63 61 | 6c 6c 20 74 68 65 20 66 |ir to ca|ll the f|
|00000ea0| 6f 72 6d 61 74 74 65 72 | 27 73 0d 5c 63 6f 64 65 |ormatter|'s.\code|
|00000eb0| 7b 62 67 6e 5f 61 6e 63 | 68 6f 72 28 29 7d 20 61 |{bgn_anc|hor()} a|
|00000ec0| 6e 64 20 5c 63 6f 64 65 | 7b 65 6e 64 5f 61 6e 63 |nd \code|{end_anc|
|00000ed0| 68 6f 72 28 29 7d 20 6d | 65 74 68 6f 64 73 2e 20 |hor()} m|ethods. |
|00000ee0| 20 54 68 69 73 20 61 6c | 6c 6f 77 73 20 74 68 65 | This al|lows the|
|00000ef0| 0d 66 6f 72 6d 61 74 74 | 65 72 20 74 6f 20 64 69 |.formatt|er to di|
|00000f00| 73 70 6c 61 79 20 74 68 | 65 20 61 6e 63 68 6f 72 |splay th|e anchor|
|00000f10| 20 69 6e 20 61 20 64 69 | 66 66 65 72 65 6e 74 20 | in a di|fferent |
|00000f20| 66 6f 6e 74 20 6f 72 20 | 63 6f 6c 6f 72 2c 20 65 |font or |color, e|
|00000f30| 74 63 2e 0d 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |tc..\end|{funcdes|
|00000f40| 63 7d 0d 0d 49 6e 73 74 | 61 6e 63 65 73 20 6f 66 |c}..Inst|ances of|
|00000f50| 20 5c 63 6f 64 65 7b 43 | 6f 6c 6c 65 63 74 69 6e | \code{C|ollectin|
|00000f60| 67 50 61 72 73 65 72 7d | 20 28 61 6e 64 20 74 68 |gParser}| (and th|
|00000f70| 75 73 20 61 6c 73 6f 20 | 69 6e 73 74 61 6e 63 65 |us also |instance|
|00000f80| 73 20 6f 66 0d 5c 63 6f | 64 65 7b 46 6f 72 6d 61 |s of.\co|de{Forma|
|00000f90| 74 74 69 6e 67 50 61 72 | 73 65 72 7d 20 61 6e 64 |ttingPar|ser} and|
|00000fa0| 20 5c 63 6f 64 65 7b 41 | 6e 63 68 6f 72 69 6e 67 | \code{A|nchoring|
|00000fb0| 50 61 72 73 65 72 7d 29 | 20 68 61 76 65 20 74 68 |Parser})| have th|
|00000fc0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 0d 69 6e 73 74 |e follow|ing.inst|
|00000fd0| 61 6e 63 65 20 76 61 72 | 69 61 62 6c 65 73 3a 0d |ance var|iables:.|
|00000fe0| 0d 5c 62 65 67 69 6e 7b | 64 61 74 61 64 65 73 63 |.\begin{|datadesc|
|00000ff0| 7d 7b 61 6e 63 68 6f 72 | 6e 61 6d 65 73 7d 0d 41 |}{anchor|names}.A|
|00001000| 20 6c 69 73 74 20 6f 66 | 20 74 68 65 20 76 61 6c | list of| the val|
|00001010| 75 65 73 20 6f 66 20 74 | 68 65 20 5c 63 6f 64 65 |ues of t|he \code|
|00001020| 7b 4e 41 4d 45 7d 20 61 | 74 74 72 69 62 75 74 65 |{NAME} a|ttribute|
|00001030| 73 20 6f 66 20 74 68 65 | 20 5c 63 6f 64 65 7b 3c |s of the| \code{<|
|00001040| 41 3e 7d 0d 74 61 67 73 | 20 65 6e 63 6f 75 6e 74 |A>}.tags| encount|
|00001050| 65 72 65 64 2e 0d 5c 65 | 6e 64 7b 64 61 74 61 64 |ered..\e|nd{datad|
|00001060| 65 73 63 7d 0d 0d 5c 62 | 65 67 69 6e 7b 64 61 74 |esc}..\b|egin{dat|
|00001070| 61 64 65 73 63 7d 7b 61 | 6e 63 68 6f 72 73 7d 0d |adesc}{a|nchors}.|
|00001080| 41 20 6c 69 73 74 20 6f | 66 20 74 68 65 20 76 61 |A list o|f the va|
|00001090| 6c 75 65 73 20 6f 66 20 | 5c 63 6f 64 65 7b 48 52 |lues of |\code{HR|
|000010a0| 45 46 7d 20 61 74 74 72 | 69 62 75 74 65 73 20 6f |EF} attr|ibutes o|
|000010b0| 66 20 74 68 65 20 5c 63 | 6f 64 65 7b 3c 41 3e 7d |f the \c|ode{<A>}|
|000010c0| 20 74 61 67 73 0d 65 6e | 63 6f 75 6e 74 65 72 65 | tags.en|countere|
|000010d0| 64 2e 0d 5c 65 6e 64 7b | 64 61 74 61 64 65 73 63 |d..\end{|datadesc|
|000010e0| 7d 0d 0d 5c 62 65 67 69 | 6e 7b 64 61 74 61 64 65 |}..\begi|n{datade|
|000010f0| 73 63 7d 7b 61 6e 63 68 | 6f 72 74 79 70 65 73 7d |sc}{anch|ortypes}|
|00001100| 0d 41 20 6c 69 73 74 20 | 6f 66 20 74 68 65 20 76 |.A list |of the v|
|00001110| 61 6c 75 65 73 20 6f 66 | 20 74 68 65 20 5c 63 6f |alues of| the \co|
|00001120| 64 65 7b 54 59 50 45 7d | 20 61 74 74 72 69 62 75 |de{TYPE}| attribu|
|00001130| 74 65 73 20 6f 66 20 74 | 68 65 20 5c 63 6f 64 65 |tes of t|he \code|
|00001140| 7b 3c 41 3e 7d 0d 74 61 | 67 73 20 65 6e 63 6f 75 |{<A>}.ta|gs encou|
|00001150| 6e 74 65 72 65 64 2e 0d | 5c 65 6e 64 7b 64 61 74 |ntered..|\end{dat|
|00001160| 61 64 65 73 63 7d 0d 0d | 5c 62 65 67 69 6e 7b 64 |adesc}..|\begin{d|
|00001170| 61 74 61 64 65 73 63 7d | 7b 69 6e 61 6e 63 68 6f |atadesc}|{inancho|
|00001180| 72 7d 0d 4f 75 74 73 69 | 64 65 20 61 6e 20 5c 63 |r}.Outsi|de an \c|
|00001190| 6f 64 65 7b 3c 41 3e 2e | 2e 2e 3c 2f 41 3e 7d 20 |ode{<A>.|..</A>} |
|000011a0| 74 61 67 20 70 61 69 72 | 2c 20 74 68 69 73 20 69 |tag pair|, this i|
|000011b0| 73 20 7a 65 72 6f 2e 20 | 20 49 6e 73 69 64 65 20 |s zero. | Inside |
|000011c0| 73 75 63 68 20 61 0d 70 | 61 69 72 2c 20 69 74 20 |such a.p|air, it |
|000011d0| 69 73 20 61 20 75 6e 69 | 71 75 65 20 69 6e 74 65 |is a uni|que inte|
|000011e0| 67 65 72 2c 20 77 68 69 | 63 68 20 69 73 20 70 6f |ger, whi|ch is po|
|000011f0| 73 69 74 69 76 65 20 69 | 66 20 74 68 65 20 61 6e |sitive i|f the an|
|00001200| 63 68 6f 72 20 68 61 73 | 20 61 0d 5c 63 6f 64 65 |chor has| a.\code|
|00001210| 7b 48 52 45 46 7d 20 61 | 74 74 72 69 62 75 74 65 |{HREF} a|ttribute|
|00001220| 2c 20 6e 65 67 61 74 69 | 76 65 20 69 66 20 69 74 |, negati|ve if it|
|00001230| 20 68 61 73 6e 27 74 2e | 20 20 49 74 73 20 61 62 | hasn't.| Its ab|
|00001240| 73 6f 6c 75 74 65 20 76 | 61 6c 75 65 20 69 73 0d |solute v|alue is.|
|00001250| 6f 6e 65 20 6d 6f 72 65 | 20 74 68 61 6e 20 74 68 |one more| than th|
|00001260| 65 20 69 6e 64 65 78 20 | 6f 66 20 74 68 65 20 61 |e index |of the a|
|00001270| 6e 63 68 6f 72 20 69 6e | 20 74 68 65 20 5c 63 6f |nchor in| the \co|
|00001280| 64 65 7b 61 6e 63 68 6f | 72 73 7d 2c 0d 5c 63 6f |de{ancho|rs},.\co|
|00001290| 64 65 7b 61 6e 63 68 6f | 72 6e 61 6d 65 73 7d 20 |de{ancho|rnames} |
|000012a0| 61 6e 64 20 5c 63 6f 64 | 65 7b 61 6e 63 68 6f 72 |and \cod|e{anchor|
|000012b0| 74 79 70 65 73 7d 20 6c | 69 73 74 73 2e 0d 5c 65 |types} l|ists..\e|
|000012c0| 6e 64 7b 64 61 74 61 64 | 65 73 63 7d 0d 0d 5c 62 |nd{datad|esc}..\b|
|000012d0| 65 67 69 6e 7b 64 61 74 | 61 64 65 73 63 7d 7b 69 |egin{dat|adesc}{i|
|000012e0| 73 69 6e 64 65 78 7d 0d | 54 72 75 65 20 69 66 20 |sindex}.|True if |
|000012f0| 74 68 65 20 5c 63 6f 64 | 65 7b 3c 49 53 49 4e 44 |the \cod|e{<ISIND|
|00001300| 45 58 3e 7d 20 74 61 67 | 20 68 61 73 20 62 65 65 |EX>} tag| has bee|
|00001310| 6e 20 65 6e 63 6f 75 6e | 74 65 72 65 64 2e 0d 5c |n encoun|tered..\|
|00001320| 65 6e 64 7b 64 61 74 61 | 64 65 73 63 7d 0d 0d 5c |end{data|desc}..\|
|00001330| 62 65 67 69 6e 7b 64 61 | 74 61 64 65 73 63 7d 7b |begin{da|tadesc}{|
|00001340| 6e 65 78 74 69 64 7d 0d | 54 68 65 20 61 74 74 72 |nextid}.|The attr|
|00001350| 69 62 75 74 65 20 6c 69 | 73 74 20 6f 66 20 74 68 |ibute li|st of th|
|00001360| 65 20 6c 61 73 74 20 5c | 63 6f 64 65 7b 3c 4e 45 |e last \|code{<NE|
|00001370| 58 54 49 44 3e 7d 20 74 | 61 67 20 65 6e 63 6f 75 |XTID>} t|ag encou|
|00001380| 6e 74 65 72 65 64 2c 20 | 6f 72 0d 61 6e 20 65 6d |ntered, |or.an em|
|00001390| 70 74 79 20 6c 69 73 74 | 20 69 66 20 6e 6f 6e 65 |pty list| if none|
|000013a0| 2e 0d 5c 65 6e 64 7b 64 | 61 74 61 64 65 73 63 7d |..\end{d|atadesc}|
|000013b0| 0d 0d 5c 62 65 67 69 6e | 7b 64 61 74 61 64 65 73 |..\begin|{datades|
|000013c0| 63 7d 7b 74 69 74 6c 65 | 7d 0d 54 68 65 20 74 65 |c}{title|}.The te|
|000013d0| 78 74 20 69 6e 73 69 64 | 65 20 74 68 65 20 6c 61 |xt insid|e the la|
|000013e0| 73 74 20 5c 63 6f 64 65 | 7b 3c 54 49 54 4c 45 3e |st \code|{<TITLE>|
|000013f0| 2e 2e 2e 3c 2f 54 49 54 | 4c 45 3e 7d 20 74 61 67 |...</TIT|LE>} tag|
|00001400| 20 70 61 69 72 2c 20 6f | 72 0d 5c 63 6f 64 65 7b | pair, o|r.\code{|
|00001410| 27 27 7d 20 69 66 20 6e | 6f 20 74 69 74 6c 65 20 |''} if n|o title |
|00001420| 68 61 73 20 62 65 65 6e | 20 65 6e 63 6f 75 6e 74 |has been| encount|
|00001430| 65 72 65 64 20 79 65 74 | 2e 0d 5c 65 6e 64 7b 64 |ered yet|..\end{d|
|00001440| 61 74 61 64 65 73 63 7d | 0d 0d 54 68 65 20 5c 63 |atadesc}|..The \c|
|00001450| 6f 64 65 7b 61 6e 63 68 | 6f 72 73 7d 2c 20 5c 63 |ode{anch|ors}, \c|
|00001460| 6f 64 65 7b 61 6e 63 68 | 6f 72 6e 61 6d 65 73 7d |ode{anch|ornames}|
|00001470| 20 61 6e 64 20 5c 63 6f | 64 65 7b 61 6e 63 68 6f | and \co|de{ancho|
|00001480| 72 74 79 70 65 73 7d 20 | 6c 69 73 74 73 0d 61 72 |rtypes} |lists.ar|
|00001490| 65 20 60 60 70 61 72 61 | 6c 6c 65 6c 20 61 72 72 |e ``para|llel arr|
|000014a0| 61 79 73 27 27 3a 20 69 | 74 65 6d 73 20 69 6e 20 |ays'': i|tems in |
|000014b0| 74 68 65 73 65 20 6c 69 | 73 74 73 20 77 69 74 68 |these li|sts with|
|000014c0| 20 74 68 65 20 73 61 6d | 65 20 69 6e 64 65 78 0d | the sam|e index.|
|000014d0| 70 65 72 74 61 69 6e 20 | 74 6f 20 74 68 65 20 73 |pertain |to the s|
|000014e0| 61 6d 65 20 61 6e 63 68 | 6f 72 2e 20 20 4d 69 73 |ame anch|or. Mis|
|000014f0| 73 69 6e 67 20 61 74 74 | 72 69 62 75 74 65 73 20 |sing att|ributes |
|00001500| 64 65 66 61 75 6c 74 20 | 74 6f 20 74 68 65 20 65 |default |to the e|
|00001510| 6d 70 74 79 0d 73 74 72 | 69 6e 67 2e 20 20 41 6e |mpty.str|ing. An|
|00001520| 63 68 6f 72 73 20 77 69 | 74 68 20 6e 65 69 74 68 |chors wi|th neith|
|00001530| 65 72 20 61 20 5c 63 6f | 64 65 7b 48 52 45 46 7d |er a \co|de{HREF}|
|00001540| 20 6e 6f 72 20 61 20 5c | 63 6f 64 65 7b 4e 41 4d | nor a \|code{NAM|
|00001550| 45 7d 0d 61 74 74 72 69 | 62 75 74 65 20 61 72 65 |E}.attri|bute are|
|00001560| 20 6e 6f 74 20 65 6e 74 | 65 72 65 64 20 69 6e 20 | not ent|ered in |
|00001570| 74 68 65 73 65 20 6c 69 | 73 74 73 20 61 74 20 61 |these li|sts at a|
|00001580| 6c 6c 2e 0d 0d 54 68 65 | 20 6d 6f 64 75 6c 65 20 |ll...The| module |
|00001590| 61 6c 73 6f 20 64 65 66 | 69 6e 65 73 20 61 20 6e |also def|ines a n|
|000015a0| 75 6d 62 65 72 20 6f 66 | 20 73 74 79 6c 65 20 73 |umber of| style s|
|000015b0| 68 65 65 74 20 63 6c 61 | 73 73 65 73 2e 20 20 54 |heet cla|sses. T|
|000015c0| 68 65 73 65 20 73 68 6f | 75 6c 64 0d 6e 65 76 65 |hese sho|uld.neve|
|000015d0| 72 20 62 65 20 69 6e 73 | 74 61 6e 74 69 61 74 65 |r be ins|tantiate|
|000015e0| 64 20 2d 2d 2d 20 74 68 | 65 69 72 20 63 6c 61 73 |d --- th|eir clas|
|000015f0| 73 20 76 61 72 69 61 62 | 6c 65 73 20 61 72 65 20 |s variab|les are |
|00001600| 74 68 65 20 6f 6e 6c 79 | 20 62 65 68 61 76 69 6f |the only| behavio|
|00001610| 72 0d 72 65 71 75 69 72 | 65 64 2e 20 20 4e 6f 74 |r.requir|ed. Not|
|00001620| 65 20 74 68 61 74 20 73 | 74 79 6c 65 20 73 68 65 |e that s|tyle she|
|00001630| 65 74 73 20 61 72 65 20 | 73 70 65 63 69 66 69 63 |ets are |specific|
|00001640| 61 6c 6c 79 20 64 65 73 | 69 67 6e 65 64 20 66 6f |ally des|igned fo|
|00001650| 72 20 61 0d 70 61 72 74 | 69 63 75 6c 61 72 20 66 |r a.part|icular f|
|00001660| 6f 72 6d 61 74 74 65 72 | 20 69 6d 70 6c 65 6d 65 |ormatter| impleme|
|00001670| 6e 74 61 74 69 6f 6e 2e | 20 20 54 68 65 20 63 75 |ntation.| The cu|
|00001680| 72 72 65 6e 74 6c 79 20 | 64 65 66 69 6e 65 64 20 |rrently |defined |
|00001690| 73 74 79 6c 65 0d 73 68 | 65 65 74 73 20 61 72 65 |style.sh|eets are|
|000016a0| 3a 0d 5c 69 6e 64 65 78 | 7b 73 74 79 6c 65 20 73 |:.\index|{style s|
|000016b0| 68 65 65 74 7d 0d 0d 5c | 62 65 67 69 6e 7b 64 61 |heet}..\|begin{da|
|000016c0| 74 61 64 65 73 63 7d 7b | 4e 75 6c 6c 53 74 79 6c |tadesc}{|NullStyl|
|000016d0| 65 73 68 65 65 74 7d 0d | 41 20 73 74 79 6c 65 20 |esheet}.|A style |
|000016e0| 73 68 65 65 74 20 66 6f | 72 20 75 73 65 20 6f 6e |sheet fo|r use on|
|000016f0| 20 61 20 64 75 6d 62 20 | 6f 75 74 70 75 74 20 64 | a dumb |output d|
|00001700| 65 76 69 63 65 20 73 75 | 63 68 20 61 73 20 61 6e |evice su|ch as an|
|00001710| 20 5c 41 53 43 49 49 7b | 7d 0d 74 65 72 6d 69 6e | \ASCII{|}.termin|
|00001720| 61 6c 2e 0d 5c 65 6e 64 | 7b 64 61 74 61 64 65 73 |al..\end|{datades|
|00001730| 63 7d 0d 0d 5c 62 65 67 | 69 6e 7b 64 61 74 61 64 |c}..\beg|in{datad|
|00001740| 65 73 63 7d 7b 58 31 31 | 53 74 79 6c 65 73 68 65 |esc}{X11|Styleshe|
|00001750| 65 74 7d 0d 41 20 73 74 | 79 6c 65 20 73 68 65 65 |et}.A st|yle shee|
|00001760| 74 20 66 6f 72 20 75 73 | 65 20 77 69 74 68 20 61 |t for us|e with a|
|00001770| 6e 20 58 31 31 20 73 65 | 72 76 65 72 2e 0d 5c 65 |n X11 se|rver..\e|
|00001780| 6e 64 7b 64 61 74 61 64 | 65 73 63 7d 0d 0d 5c 62 |nd{datad|esc}..\b|
|00001790| 65 67 69 6e 7b 64 61 74 | 61 64 65 73 63 7d 7b 4d |egin{dat|adesc}{M|
|000017a0| 61 63 53 74 79 6c 65 73 | 68 65 65 74 7d 0d 41 20 |acStyles|heet}.A |
|000017b0| 73 74 79 6c 65 20 73 68 | 65 65 74 20 66 6f 72 20 |style sh|eet for |
|000017c0| 75 73 65 20 6f 6e 20 41 | 70 70 6c 65 20 4d 61 63 |use on A|pple Mac|
|000017d0| 69 6e 74 6f 73 68 20 63 | 6f 6d 70 75 74 65 72 73 |intosh c|omputers|
|000017e0| 2e 0d 5c 65 6e 64 7b 64 | 61 74 61 64 65 73 63 7d |..\end{d|atadesc}|
|000017f0| 0d 0d 5c 62 65 67 69 6e | 7b 64 61 74 61 64 65 73 |..\begin|{datades|
|00001800| 63 7d 7b 53 74 64 77 69 | 6e 53 74 79 6c 65 73 68 |c}{Stdwi|nStylesh|
|00001810| 65 65 74 7d 0d 41 20 73 | 74 79 6c 65 20 73 68 65 |eet}.A s|tyle she|
|00001820| 65 74 20 66 6f 72 20 75 | 73 65 20 77 69 74 68 20 |et for u|se with |
|00001830| 74 68 65 20 5c 63 6f 64 | 65 7b 73 74 64 77 69 6e |the \cod|e{stdwin|
|00001840| 7d 20 6d 6f 64 75 6c 65 | 3b 20 69 74 20 69 73 20 |} module|; it is |
|00001850| 61 6e 20 61 6c 69 61 73 | 0d 66 6f 72 20 65 69 74 |an alias|.for eit|
|00001860| 68 65 72 20 5c 63 6f 64 | 65 7b 58 31 31 53 74 79 |her \cod|e{X11Sty|
|00001870| 6c 65 73 68 65 65 74 7d | 20 6f 72 20 5c 63 6f 64 |lesheet}| or \cod|
|00001880| 65 7b 4d 61 63 53 74 79 | 6c 65 73 68 65 65 74 7d |e{MacSty|lesheet}|
|00001890| 2e 0d 5c 62 69 6d 6f 64 | 69 6e 64 65 78 7b 73 74 |..\bimod|index{st|
|000018a0| 64 77 69 6e 7d 0d 5c 65 | 6e 64 7b 64 61 74 61 64 |dwin}.\e|nd{datad|
|000018b0| 65 73 63 7d 0d 0d 5c 62 | 65 67 69 6e 7b 64 61 74 |esc}..\b|egin{dat|
|000018c0| 61 64 65 73 63 7d 7b 47 | 4c 53 74 79 6c 65 73 68 |adesc}{G|LStylesh|
|000018d0| 65 65 74 7d 0d 41 20 73 | 74 79 6c 65 20 73 68 65 |eet}.A s|tyle she|
|000018e0| 65 74 20 66 6f 72 20 75 | 73 65 20 77 69 74 68 20 |et for u|se with |
|000018f0| 74 68 65 20 53 47 49 20 | 47 72 61 70 68 69 63 73 |the SGI |Graphics|
|00001900| 20 4c 69 62 72 61 72 79 | 20 61 6e 64 20 69 74 73 | Library| and its|
|00001910| 20 66 6f 6e 74 0d 6d 61 | 6e 61 67 65 72 20 28 74 | font.ma|nager (t|
|00001920| 68 65 20 53 47 49 2d 73 | 70 65 63 69 66 69 63 20 |he SGI-s|pecific |
|00001930| 62 75 69 6c 74 2d 69 6e | 20 6d 6f 64 75 6c 65 73 |built-in| modules|
|00001940| 20 5c 63 6f 64 65 7b 67 | 6c 7d 20 61 6e 64 20 5c | \code{g|l} and \|
|00001950| 63 6f 64 65 7b 66 6d 7d | 29 2e 0d 5c 62 69 6d 6f |code{fm}|)..\bimo|
|00001960| 64 69 6e 64 65 78 7b 67 | 6c 7d 0d 5c 62 69 6d 6f |dindex{g|l}.\bimo|
|00001970| 64 69 6e 64 65 78 7b 66 | 6d 7d 0d 5c 65 6e 64 7b |dindex{f|m}.\end{|
|00001980| 64 61 74 61 64 65 73 63 | 7d 0d 0d 53 74 79 6c 65 |datadesc|}..Style|
|00001990| 20 73 68 65 65 74 73 20 | 68 61 76 65 20 74 68 65 | sheets |have the|
|000019a0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 6c 61 73 73 | followi|ng class|
|000019b0| 20 76 61 72 69 61 62 6c | 65 73 3a 0d 0d 5c 62 65 | variabl|es:..\be|
|000019c0| 67 69 6e 7b 64 61 74 61 | 64 65 73 63 7d 7b 73 74 |gin{data|desc}{st|
|000019d0| 64 66 6f 6e 74 73 65 74 | 7d 0d 41 20 6c 69 73 74 |dfontset|}.A list|
|000019e0| 20 6f 66 20 75 70 20 74 | 6f 20 66 6f 75 72 20 66 | of up t|o four f|
|000019f0| 6f 6e 74 20 64 65 66 69 | 6e 69 74 69 74 69 6f 6e |ont defi|nitition|
|00001a00| 73 2c 20 72 65 73 70 65 | 63 74 69 76 65 6c 79 20 |s, respe|ctively |
|00001a10| 66 6f 72 20 74 68 65 20 | 72 6f 6d 61 6e 2c 0d 69 |for the |roman,.i|
|00001a20| 74 61 6c 69 63 2c 20 62 | 6f 6c 64 20 61 6e 64 20 |talic, b|old and |
|00001a30| 63 6f 6e 73 74 61 6e 74 | 2d 77 69 64 74 68 20 76 |constant|-width v|
|00001a40| 61 72 69 61 6e 74 20 6f | 66 20 61 20 66 6f 6e 74 |ariant o|f a font|
|00001a50| 20 66 6f 72 20 6e 6f 72 | 6d 61 6c 20 74 65 78 74 | for nor|mal text|
|00001a60| 2e 20 20 49 66 0d 74 68 | 65 20 6c 69 73 74 20 63 |. If.th|e list c|
|00001a70| 6f 6e 74 61 69 6e 73 20 | 6c 65 73 73 20 74 68 61 |ontains |less tha|
|00001a80| 6e 20 66 6f 75 72 20 66 | 6f 6e 74 20 64 65 66 69 |n four f|ont defi|
|00001a90| 6e 69 74 69 6f 6e 73 2c | 20 74 68 65 20 6c 61 73 |nitions,| the las|
|00001aa0| 74 20 69 74 65 6d 20 69 | 73 0d 75 73 65 64 20 61 |t item i|s.used a|
|00001ab0| 73 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 66 6f |s the de|fault fo|
|00001ac0| 72 20 6d 69 73 73 69 6e | 67 20 69 74 65 6d 73 2e |r missin|g items.|
|00001ad0| 20 20 54 68 65 20 74 79 | 70 65 20 6f 66 20 61 20 | The ty|pe of a |
|00001ae0| 66 6f 6e 74 20 64 65 66 | 69 6e 69 74 69 6f 6e 0d |font def|inition.|
|00001af0| 64 65 70 65 6e 64 73 20 | 6f 6e 20 74 68 65 20 66 |depends |on the f|
|00001b00| 6f 72 6d 61 74 74 65 72 | 20 69 6e 20 75 73 65 3b |ormatter| in use;|
|00001b10| 20 69 74 73 20 6f 6e 6c | 79 20 75 73 65 20 69 73 | its onl|y use is|
|00001b20| 20 61 73 20 61 20 70 61 | 72 61 6d 65 74 65 72 20 | as a pa|rameter |
|00001b30| 74 6f 20 74 68 65 0d 66 | 6f 72 6d 61 74 74 65 72 |to the.f|ormatter|
|00001b40| 27 73 20 5c 63 6f 64 65 | 7b 73 65 74 66 6f 6e 74 |'s \code|{setfont|
|00001b50| 28 29 7d 20 6d 65 74 68 | 6f 64 2e 0d 5c 65 6e 64 |()} meth|od..\end|
|00001b60| 7b 64 61 74 61 64 65 73 | 63 7d 0d 0d 5c 62 65 67 |{datades|c}..\beg|
|00001b70| 69 6e 7b 64 61 74 61 64 | 65 73 63 7d 7b 68 31 66 |in{datad|esc}{h1f|
|00001b80| 6f 6e 74 73 65 74 7d 0d | 5c 64 61 74 61 6c 69 6e |ontset}.|\datalin|
|00001b90| 65 7b 68 32 66 6f 6e 74 | 73 65 74 7d 0d 5c 64 61 |e{h2font|set}.\da|
|00001ba0| 74 61 6c 69 6e 65 7b 68 | 33 66 6f 6e 74 73 65 74 |taline{h|3fontset|
|00001bb0| 7d 0d 54 68 65 20 66 6f | 6e 74 20 73 65 74 20 75 |}.The fo|nt set u|
|00001bc0| 73 65 64 20 66 6f 72 20 | 76 61 72 69 6f 75 73 20 |sed for |various |
|00001bd0| 68 65 61 64 65 72 73 20 | 28 74 65 78 74 20 69 6e |headers |(text in|
|00001be0| 73 69 64 65 20 5c 63 6f | 64 65 7b 3c 48 31 3e 2e |side \co|de{<H1>.|
|00001bf0| 2e 2e 3c 2f 48 31 3e 7d | 0d 74 61 67 20 70 61 69 |..</H1>}|.tag pai|
|00001c00| 72 73 20 65 74 63 2e 29 | 2e 0d 5c 65 6e 64 7b 64 |rs etc.)|..\end{d|
|00001c10| 61 74 61 64 65 73 63 7d | 0d 0d 5c 62 65 67 69 6e |atadesc}|..\begin|
|00001c20| 7b 64 61 74 61 64 65 73 | 63 7d 7b 73 74 64 69 6e |{datades|c}{stdin|
|00001c30| 64 65 6e 74 7d 0d 54 68 | 65 20 69 6e 64 65 6e 74 |dent}.Th|e indent|
|00001c40| 61 74 69 6f 6e 20 6f 66 | 20 6e 6f 72 6d 61 6c 20 |ation of| normal |
|00001c50| 74 65 78 74 2e 20 20 54 | 68 69 73 20 69 73 20 6d |text. T|his is m|
|00001c60| 65 61 73 75 72 65 64 20 | 69 6e 20 74 68 65 20 60 |easured |in the `|
|00001c70| 60 6e 61 74 69 76 65 27 | 27 0d 75 6e 69 74 73 20 |`native'|'.units |
|00001c80| 6f 66 20 74 68 65 20 66 | 6f 72 6d 61 74 74 65 72 |of the f|ormatter|
|00001c90| 20 69 6e 20 75 73 65 3b | 20 66 6f 72 20 73 6f 6d | in use;| for som|
|00001ca0| 65 20 66 6f 72 6d 61 74 | 74 65 72 73 20 74 68 65 |e format|ters the|
|00001cb0| 73 65 20 61 72 65 0d 63 | 68 61 72 61 63 74 65 72 |se are.c|haracter|
|00001cc0| 73 2c 20 66 6f 72 20 6f | 74 68 65 72 73 20 28 65 |s, for o|thers (e|
|00001cd0| 73 70 65 63 69 61 6c 6c | 79 20 74 68 6f 73 65 20 |speciall|y those |
|00001ce0| 74 68 61 74 20 61 63 74 | 75 61 6c 6c 79 20 73 75 |that act|ually su|
|00001cf0| 70 70 6f 72 74 0d 76 61 | 72 69 61 62 6c 65 2d 73 |pport.va|riable-s|
|00001d00| 70 61 63 69 6e 67 20 66 | 6f 6e 74 73 29 20 69 6e |pacing f|onts) in|
|00001d10| 20 70 69 78 65 6c 73 20 | 6f 72 20 70 72 69 6e 74 | pixels |or print|
|00001d20| 65 72 20 70 6f 69 6e 74 | 73 2e 0d 5c 65 6e 64 7b |er point|s..\end{|
|00001d30| 64 61 74 61 64 65 73 63 | 7d 0d 0d 5c 62 65 67 69 |datadesc|}..\begi|
|00001d40| 6e 7b 64 61 74 61 64 65 | 73 63 7d 7b 64 64 69 6e |n{datade|sc}{ddin|
|00001d50| 64 65 6e 74 7d 0d 54 68 | 65 20 69 6e 64 65 6e 74 |dent}.Th|e indent|
|00001d60| 61 74 69 6f 6e 20 75 73 | 65 64 20 66 6f 72 20 74 |ation us|ed for t|
|00001d70| 68 65 20 66 69 72 73 74 | 20 6c 65 76 65 6c 20 6f |he first| level o|
|00001d80| 66 20 5c 63 6f 64 65 7b | 3c 44 44 3e 7d 20 74 61 |f \code{|<DD>} ta|
|00001d90| 67 73 2e 0d 5c 65 6e 64 | 7b 64 61 74 61 64 65 73 |gs..\end|{datades|
|00001da0| 63 7d 0d 0d 5c 62 65 67 | 69 6e 7b 64 61 74 61 64 |c}..\beg|in{datad|
|00001db0| 65 73 63 7d 7b 75 6c 69 | 6e 64 65 6e 74 7d 0d 54 |esc}{uli|ndent}.T|
|00001dc0| 68 65 20 69 6e 64 65 6e | 74 61 74 69 6f 6e 20 75 |he inden|tation u|
|00001dd0| 73 65 64 20 66 6f 72 20 | 74 68 65 20 66 69 72 73 |sed for |the firs|
|00001de0| 74 20 6c 65 76 65 6c 20 | 6f 66 20 5c 63 6f 64 65 |t level |of \code|
|00001df0| 7b 3c 55 4c 3e 7d 20 74 | 61 67 73 2e 0d 5c 65 6e |{<UL>} t|ags..\en|
|00001e00| 64 7b 64 61 74 61 64 65 | 73 63 7d 0d 0d 5c 62 65 |d{datade|sc}..\be|
|00001e10| 67 69 6e 7b 64 61 74 61 | 64 65 73 63 7d 7b 68 31 |gin{data|desc}{h1|
|00001e20| 69 6e 64 65 6e 74 7d 0d | 54 68 65 20 69 6e 64 65 |indent}.|The inde|
|00001e30| 6e 74 61 74 69 6f 6e 20 | 75 73 65 64 20 66 6f 72 |ntation |used for|
|00001e40| 20 6c 65 76 65 6c 20 31 | 20 68 65 61 64 65 72 73 | level 1| headers|
|00001e50| 2e 0d 5c 65 6e 64 7b 64 | 61 74 61 64 65 73 63 7d |..\end{d|atadesc}|
|00001e60| 0d 0d 5c 62 65 67 69 6e | 7b 64 61 74 61 64 65 73 |..\begin|{datades|
|00001e70| 63 7d 7b 68 32 69 6e 64 | 65 6e 74 7d 0d 54 68 65 |c}{h2ind|ent}.The|
|00001e80| 20 69 6e 64 65 6e 74 61 | 74 69 6f 6e 20 75 73 65 | indenta|tion use|
|00001e90| 64 20 66 6f 72 20 6c 65 | 76 65 6c 20 32 20 68 65 |d for le|vel 2 he|
|00001ea0| 61 64 65 72 73 2e 0d 5c | 65 6e 64 7b 64 61 74 61 |aders..\|end{data|
|00001eb0| 64 65 73 63 7d 0d 0d 5c | 62 65 67 69 6e 7b 64 61 |desc}..\|begin{da|
|00001ec0| 74 61 64 65 73 63 7d 7b | 6c 69 74 65 72 61 6c 69 |tadesc}{|literali|
|00001ed0| 6e 64 65 6e 74 7d 0d 54 | 68 65 20 69 6e 64 65 6e |ndent}.T|he inden|
|00001ee0| 74 61 74 69 6f 6e 20 75 | 73 65 64 20 66 6f 72 20 |tation u|sed for |
|00001ef0| 6c 69 74 65 72 61 6c 20 | 74 65 78 74 20 28 74 65 |literal |text (te|
|00001f00| 78 74 20 69 6e 73 69 64 | 65 0d 5c 63 6f 64 65 7b |xt insid|e.\code{|
|00001f10| 3c 50 52 45 3e 2e 2e 2e | 3c 2f 50 52 45 3e 7d 20 |<PRE>...|</PRE>} |
|00001f20| 61 6e 64 20 73 69 6d 69 | 6c 61 72 20 74 61 67 20 |and simi|lar tag |
|00001f30| 70 61 69 72 73 29 2e 0d | 5c 65 6e 64 7b 64 61 74 |pairs)..|\end{dat|
|00001f40| 61 64 65 73 63 7d 0d 0d | 41 6c 74 68 6f 75 67 68 |adesc}..|Although|
|00001f50| 20 6e 6f 20 64 6f 63 75 | 6d 65 6e 74 65 64 20 69 | no docu|mented i|
|00001f60| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |mplement|ation of|
|00001f70| 20 61 20 66 6f 72 6d 61 | 74 74 65 72 20 65 78 69 | a forma|tter exi|
|00001f80| 73 74 73 2c 20 74 68 65 | 0d 5c 63 6f 64 65 7b 46 |sts, the|.\code{F|
|00001f90| 6f 72 6d 61 74 74 69 6e | 67 50 61 72 73 65 72 7d |ormattin|gParser}|
|00001fa0| 20 63 6c 61 73 73 20 61 | 73 73 75 6d 65 73 20 74 | class a|ssumes t|
|00001fb0| 68 61 74 20 66 6f 72 6d | 61 74 74 65 72 73 20 68 |hat form|atters h|
|00001fc0| 61 76 65 20 61 0d 63 65 | 72 74 61 69 6e 20 69 6e |ave a.ce|rtain in|
|00001fd0| 74 65 72 66 61 63 65 2e | 20 20 54 68 69 73 20 69 |terface.| This i|
|00001fe0| 6e 74 65 72 66 61 63 65 | 20 72 65 71 75 69 72 65 |nterface| require|
|00001ff0| 73 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |s the fo|llowing |
|00002000| 6d 65 74 68 6f 64 73 3a | 0d 5c 69 6e 64 65 78 7b |methods:|.\index{|
|00002010| 66 6f 72 6d 61 74 74 65 | 72 7d 0d 0d 5c 62 65 67 |formatte|r}..\beg|
|00002020| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 73 65 74 |in{funcd|esc}{set|
|00002030| 66 6f 6e 74 7d 7b 66 6f | 6e 74 73 70 65 63 7d 0d |font}{fo|ntspec}.|
|00002040| 53 65 74 20 74 68 65 20 | 66 6f 6e 74 20 74 6f 20 |Set the |font to |
|00002050| 62 65 20 75 73 65 64 20 | 73 75 62 73 65 71 75 65 |be used |subseque|
|00002060| 6e 74 6c 79 2e 20 20 54 | 68 65 20 5c 76 61 72 7b |ntly. T|he \var{|
|00002070| 66 6f 6e 74 73 70 65 63 | 7d 20 61 72 67 75 6d 65 |fontspec|} argume|
|00002080| 6e 74 20 69 73 0d 61 6e | 20 69 74 65 6d 20 69 6e |nt is.an| item in|
|00002090| 20 61 20 73 74 79 6c 65 | 20 73 68 65 65 74 27 73 | a style| sheet's|
|000020a0| 20 66 6f 6e 74 20 73 65 | 74 2e 0d 5c 65 6e 64 7b | font se|t..\end{|
|000020b0| 66 75 6e 63 64 65 73 63 | 7d 0d 0d 5c 62 65 67 69 |funcdesc|}..\begi|
|000020c0| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 66 6c 75 73 |n{funcde|sc}{flus|
|000020d0| 68 7d 7b 7d 0d 46 69 6e | 69 73 68 20 74 68 65 20 |h}{}.Fin|ish the |
|000020e0| 63 75 72 72 65 6e 74 20 | 6c 69 6e 65 2c 20 69 66 |current |line, if|
|000020f0| 20 6e 6f 74 20 65 6d 70 | 74 79 2c 20 61 6e 64 20 | not emp|ty, and |
|00002100| 62 65 67 69 6e 20 61 20 | 6e 65 77 20 6f 6e 65 2e |begin a |new one.|
|00002110| 0d 5c 65 6e 64 7b 66 75 | 6e 63 64 65 73 63 7d 0d |.\end{fu|ncdesc}.|
|00002120| 0d 5c 62 65 67 69 6e 7b | 66 75 6e 63 64 65 73 63 |.\begin{|funcdesc|
|00002130| 7d 7b 73 65 74 6c 65 66 | 74 69 6e 64 65 6e 74 7d |}{setlef|tindent}|
|00002140| 7b 6e 7d 0d 53 65 74 20 | 74 68 65 20 6c 65 66 74 |{n}.Set |the left|
|00002150| 20 69 6e 64 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 | indenta|tion of |
|00002160| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6c 69 |the foll|owing li|
|00002170| 6e 65 73 20 74 6f 20 5c | 76 61 72 7b 6e 7d 20 75 |nes to \|var{n} u|
|00002180| 6e 69 74 73 2e 0d 5c 65 | 6e 64 7b 66 75 6e 63 64 |nits..\e|nd{funcd|
|00002190| 65 73 63 7d 0d 0d 5c 62 | 65 67 69 6e 7b 66 75 6e |esc}..\b|egin{fun|
|000021a0| 63 64 65 73 63 7d 7b 6e | 65 65 64 76 73 70 61 63 |cdesc}{n|eedvspac|
|000021b0| 65 7d 7b 6e 7d 0d 52 65 | 71 75 69 72 65 20 61 74 |e}{n}.Re|quire at|
|000021c0| 20 6c 65 61 73 74 20 5c | 76 61 72 7b 6e 7d 20 62 | least \|var{n} b|
|000021d0| 6c 61 6e 6b 20 6c 69 6e | 65 73 20 62 65 66 6f 72 |lank lin|es befor|
|000021e0| 65 20 74 68 65 20 6e 65 | 78 74 20 6c 69 6e 65 2e |e the ne|xt line.|
|000021f0| 20 20 49 6d 70 6c 69 65 | 73 0d 5c 63 6f 64 65 7b | Implie|s.\code{|
|00002200| 66 6c 75 73 68 28 29 7d | 2e 0d 5c 65 6e 64 7b 66 |flush()}|..\end{f|
|00002210| 75 6e 63 64 65 73 63 7d | 0d 0d 5c 62 65 67 69 6e |uncdesc}|..\begin|
|00002220| 7b 66 75 6e 63 64 65 73 | 63 7d 7b 61 64 64 77 6f |{funcdes|c}{addwo|
|00002230| 72 64 7d 7b 77 6f 72 64 | 5c 2c 20 73 70 61 63 65 |rd}{word|\, space|
|00002240| 7d 0d 41 64 64 20 61 20 | 5c 76 61 72 7b 77 6f 72 |}.Add a |\var{wor|
|00002250| 64 7d 20 74 6f 20 74 68 | 65 20 63 75 72 72 65 6e |d} to th|e curren|
|00002260| 74 20 70 61 72 61 67 72 | 61 70 68 2c 20 66 6f 6c |t paragr|aph, fol|
|00002270| 6c 6f 77 65 64 20 62 79 | 20 5c 76 61 72 7b 73 70 |lowed by| \var{sp|
|00002280| 61 63 65 7d 0d 73 70 61 | 63 65 73 2e 0d 5c 65 6e |ace}.spa|ces..\en|
|00002290| 64 7b 66 75 6e 63 64 65 | 73 63 7d 0d 0d 5c 62 65 |d{funcde|sc}..\be|
|000022a0| 67 69 6e 7b 64 61 74 61 | 64 65 73 63 7d 7b 6e 6f |gin{data|desc}{no|
|000022b0| 73 70 61 63 65 7d 0d 49 | 66 20 74 68 69 73 20 69 |space}.I|f this i|
|000022c0| 6e 73 74 61 6e 63 65 20 | 76 61 72 69 61 62 6c 65 |nstance |variable|
|000022d0| 20 69 73 20 74 72 75 65 | 2c 20 65 6d 70 74 79 20 | is true|, empty |
|000022e0| 77 6f 72 64 73 20 73 68 | 6f 75 6c 64 20 62 65 20 |words sh|ould be |
|000022f0| 69 67 6e 6f 72 65 64 20 | 62 79 0d 5c 63 6f 64 65 |ignored |by.\code|
|00002300| 7b 61 64 64 77 6f 72 64 | 7d 2e 20 20 49 74 20 73 |{addword|}. It s|
|00002310| 68 6f 75 6c 64 20 62 65 | 20 73 65 74 20 74 6f 20 |hould be| set to |
|00002320| 66 61 6c 73 65 20 61 66 | 74 65 72 20 61 20 6e 6f |false af|ter a no|
|00002330| 6e 2d 65 6d 70 74 79 20 | 77 6f 72 64 20 68 61 73 |n-empty |word has|
|00002340| 0d 62 65 65 6e 20 61 64 | 64 65 64 2e 0d 5c 65 6e |.been ad|ded..\en|
|00002350| 64 7b 64 61 74 61 64 65 | 73 63 7d 0d 0d 5c 62 65 |d{datade|sc}..\be|
|00002360| 67 69 6e 7b 66 75 6e 63 | 64 65 73 63 7d 7b 73 65 |gin{func|desc}{se|
|00002370| 74 6a 75 73 74 7d 7b 6a | 75 73 74 69 66 69 63 61 |tjust}{j|ustifica|
|00002380| 74 69 6f 6e 7d 0d 53 65 | 74 20 74 68 65 20 6a 75 |tion}.Se|t the ju|
|00002390| 73 74 69 66 69 63 61 74 | 69 6f 6e 20 6f 66 20 74 |stificat|ion of t|
|000023a0| 68 65 20 63 75 72 72 65 | 6e 74 20 70 61 72 61 67 |he curre|nt parag|
|000023b0| 72 61 70 68 2e 20 20 54 | 68 65 0d 5c 76 61 72 7b |raph. T|he.\var{|
|000023c0| 6a 75 73 74 69 66 69 63 | 61 74 69 6f 6e 7d 20 63 |justific|ation} c|
|000023d0| 61 6e 20 62 65 20 5c 63 | 6f 64 65 7b 27 63 27 7d |an be \c|ode{'c'}|
|000023e0| 20 28 63 65 6e 74 65 72 | 29 2c 20 5c 63 6f 64 65 | (center|), \code|
|000023f0| 7b 27 6c 27 7d 20 28 6c | 65 66 74 0d 6a 75 73 74 |{'l'} (l|eft.just|
|00002400| 69 66 69 65 64 29 2c 20 | 5c 63 6f 64 65 7b 27 72 |ified), |\code{'r|
|00002410| 27 7d 20 28 72 69 67 68 | 74 20 6a 75 73 74 69 66 |'} (righ|t justif|
|00002420| 69 65 64 29 20 6f 72 20 | 5c 63 6f 64 65 7b 27 6c |ied) or |\code{'l|
|00002430| 72 27 7d 20 28 6c 65 66 | 74 20 61 6e 64 0d 72 69 |r'} (lef|t and.ri|
|00002440| 67 68 74 20 6a 75 73 74 | 69 66 69 65 64 29 2e 0d |ght just|ified)..|
|00002450| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 0d 0d |\end{fun|cdesc}..|
|00002460| 5c 62 65 67 69 6e 7b 66 | 75 6e 63 64 65 73 63 7d |\begin{f|uncdesc}|
|00002470| 7b 62 67 6e 5f 61 6e 63 | 68 6f 72 7d 7b 69 64 7d |{bgn_anc|hor}{id}|
|00002480| 0d 42 65 67 69 6e 20 61 | 6e 20 61 6e 63 68 6f 72 |.Begin a|n anchor|
|00002490| 2e 20 20 54 68 65 20 5c | 76 61 72 7b 69 64 7d 20 |. The \|var{id} |
|000024a0| 70 61 72 61 6d 65 74 65 | 72 20 69 73 20 74 68 65 |paramete|r is the|
|000024b0| 20 76 61 6c 75 65 20 6f | 66 20 74 68 65 20 70 61 | value o|f the pa|
|000024c0| 72 73 65 72 27 73 0d 5c | 63 6f 64 65 7b 69 6e 61 |rser's.\|code{ina|
|000024d0| 6e 63 68 6f 72 7d 20 61 | 74 74 72 69 62 75 74 65 |nchor} a|ttribute|
|000024e0| 2e 0d 5c 65 6e 64 7b 66 | 75 6e 63 64 65 73 63 7d |..\end{f|uncdesc}|
|000024f0| 0d 0d 5c 62 65 67 69 6e | 7b 66 75 6e 63 64 65 73 |..\begin|{funcdes|
|00002500| 63 7d 7b 65 6e 64 5f 61 | 6e 63 68 6f 72 7d 7b 69 |c}{end_a|nchor}{i|
|00002510| 64 7d 0d 45 6e 64 20 61 | 6e 20 61 6e 63 68 6f 72 |d}.End a|n anchor|
|00002520| 2e 20 20 54 68 65 20 5c | 76 61 72 7b 69 64 7d 20 |. The \|var{id} |
|00002530| 70 61 72 61 6d 65 74 65 | 72 20 69 73 20 74 68 65 |paramete|r is the|
|00002540| 20 76 61 6c 75 65 20 6f | 66 20 74 68 65 20 70 61 | value o|f the pa|
|00002550| 72 73 65 72 27 73 0d 5c | 63 6f 64 65 7b 69 6e 61 |rser's.\|code{ina|
|00002560| 6e 63 68 6f 72 7d 20 61 | 74 74 72 69 62 75 74 65 |nchor} a|ttribute|
|00002570| 2e 0d 5c 65 6e 64 7b 66 | 75 6e 63 64 65 73 63 7d |..\end{f|uncdesc}|
|00002580| 0d 0d 41 20 73 61 6d 70 | 6c 65 20 66 6f 72 6d 61 |..A samp|le forma|
|00002590| 74 74 65 72 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |tter imp|lementat|
|000025a0| 69 6f 6e 20 63 61 6e 20 | 62 65 20 66 6f 75 6e 64 |ion can |be found|
|000025b0| 20 69 6e 20 74 68 65 20 | 6d 6f 64 75 6c 65 0d 5c | in the |module.\|
|000025c0| 63 6f 64 65 7b 66 6d 74 | 7d 2c 20 77 68 69 63 68 |code{fmt|}, which|
|000025d0| 20 69 6e 20 74 75 72 6e | 20 75 73 65 73 20 74 68 | in turn| uses th|
|000025e0| 65 20 6d 6f 64 75 6c 65 | 20 5c 63 6f 64 65 7b 50 |e module| \code{P|
|000025f0| 61 72 61 7d 2e 20 20 54 | 68 65 73 65 20 6d 6f 64 |ara}. T|hese mod|
|00002600| 75 6c 65 73 20 61 72 65 | 0d 6e 6f 74 20 69 6e 74 |ules are|.not int|
|00002610| 65 6e 64 65 64 20 61 73 | 20 73 74 61 6e 64 61 72 |ended as| standar|
|00002620| 64 20 6c 69 62 72 61 72 | 79 20 6d 6f 64 75 6c 65 |d librar|y module|
|00002630| 73 3b 20 74 68 65 79 20 | 61 72 65 20 61 76 61 69 |s; they |are avai|
|00002640| 6c 61 62 6c 65 20 61 73 | 20 61 6e 0d 65 78 61 6d |lable as| an.exam|
|00002650| 70 6c 65 20 6f 66 20 68 | 6f 77 20 74 6f 20 77 72 |ple of h|ow to wr|
|00002660| 69 74 65 20 61 20 66 6f | 72 6d 61 74 74 65 72 2e |ite a fo|rmatter.|
|00002670| 0d 5c 74 74 69 6e 64 65 | 78 7b 66 6d 74 7d 0d 5c |.\ttinde|x{fmt}.\|
|00002680| 74 74 69 6e 64 65 78 7b | 50 61 72 61 7d 0d |ttindex{|Para}. |
+--------+-------------------------+-------------------------+--------+--------+